package com.css.dzj.dzjap.modules.project.supervision.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * 监管工作(子表)
 *
 * @author liyuan
 */
@Entity
@Table(name = "AP_SUPERVSION_CHILD", schema = "DZJAP", catalog = "")
public class SupervisionChild {
    private String id;
    private String recordProjectName;
    private String recordProjectAddress;
    private String supervsionType;
    private Date suTime;
    private String suResult;
    private String suExplain;
    private String unitName;
    private String registAddr;
    private String syUnitType;
    private String qyUnitType;
    private String recordProjectType;
    private String recordLandType;
    private String delFlag;
    private String creatPerson;
    private Date creatTime;
    private String parentId;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "RECORD_PROJECT_NAME")
    public String getRecordProjectName() {
        return recordProjectName;
    }

    public void setRecordProjectName(String recordProjectName) {
        this.recordProjectName = recordProjectName;
    }

    @Basic
    @Column(name = "RECORD_PROJECT_ADDRESS")
    public String getRecordProjectAddress() {
        return recordProjectAddress;
    }

    public void setRecordProjectAddress(String recordProjectAddress) {
        this.recordProjectAddress = recordProjectAddress;
    }

    @Basic
    @Column(name = "SUPERVSION_TYPE")
    public String getSupervsionType() {
        return supervsionType;
    }

    public void setSupervsionType(String supervsionType) {
        this.supervsionType = supervsionType;
    }

    @Basic
    @Column(name = "SU_TIME")
    public Date getSuTime() {
        return suTime;
    }

    public void setSuTime(Date suTime) {
        this.suTime = suTime;
    }

    @Basic
    @Column(name = "SU_RESULT")
    public String getSuResult() {
        return suResult;
    }

    public void setSuResult(String suResult) {
        this.suResult = suResult;
    }

    @Basic
    @Column(name = "SU_EXPLAIN")
    public String getSuExplain() {
        return suExplain;
    }

    public void setSuExplain(String suExplain) {
        this.suExplain = suExplain;
    }

    @Basic
    @Column(name = "UNIT_NAME")
    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Basic
    @Column(name = "REGIST_ADDR")
    public String getRegistAddr() {
        return registAddr;
    }

    public void setRegistAddr(String registAddr) {
        this.registAddr = registAddr;
    }

    @Basic
    @Column(name = "SY_UNIT_TYPE")
    public String getSyUnitType() {
        return syUnitType;
    }

    public void setSyUnitType(String syUnitType) {
        this.syUnitType = syUnitType;
    }

    @Basic
    @Column(name = "QY_UNIT_TYPE")
    public String getQyUnitType() {
        return qyUnitType;
    }

    public void setQyUnitType(String qyUnitType) {
        this.qyUnitType = qyUnitType;
    }

    @Basic
    @Column(name = "RECORD_PROJECT_TYPE")
    public String getRecordProjectType() {
        return recordProjectType;
    }

    public void setRecordProjectType(String recordProjectType) {
        this.recordProjectType = recordProjectType;
    }

    @Basic
    @Column(name = "RECORD_LAND_TYPE")
    public String getRecordLandType() {
        return recordLandType;
    }

    public void setRecordLandType(String recordLandType) {
        this.recordLandType = recordLandType;
    }

    @Basic
    @Column(name = "DEL_FLAG")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Basic
    @Column(name = "CREAT_PERSON")
    public String getCreatPerson() {
        return creatPerson;
    }

    public void setCreatPerson(String creatPerson) {
        this.creatPerson = creatPerson;
    }

    @Basic
    @Column(name = "CREAT_TIME")
    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    @Basic
    @Column(name = "PARENT_ID")
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SupervisionChild that = (SupervisionChild) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(recordProjectName, that.recordProjectName) &&
                Objects.equals(recordProjectAddress, that.recordProjectAddress) &&
                Objects.equals(supervsionType, that.supervsionType) &&
                Objects.equals(suTime, that.suTime) &&
                Objects.equals(suResult, that.suResult) &&
                Objects.equals(suExplain, that.suExplain) &&
                Objects.equals(unitName, that.unitName) &&
                Objects.equals(registAddr, that.registAddr) &&
                Objects.equals(syUnitType, that.syUnitType) &&
                Objects.equals(qyUnitType, that.qyUnitType) &&
                Objects.equals(recordProjectType, that.recordProjectType) &&
                Objects.equals(recordLandType, that.recordLandType) &&
                Objects.equals(delFlag, that.delFlag) &&
                Objects.equals(creatPerson, that.creatPerson) &&
                Objects.equals(creatTime, that.creatTime) &&
                Objects.equals(parentId, that.parentId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, recordProjectName, recordProjectAddress, supervsionType, suTime, suResult, suExplain, unitName, registAddr, syUnitType, qyUnitType, recordProjectType, recordLandType, delFlag, creatPerson, creatTime, parentId);
    }
}
